import com.hadoop.rpc.service.LoginService;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.ipc.RPC;

import java.io.IOException;
import java.net.InetSocketAddress;

/**
 * Created by LiuChang on 2017/10/19/019.
 */
public class ClientDemo {
    public static void main(String[] args) throws IOException {
        LoginService loginService = RPC.getProxy(LoginService.class, LoginService.versionID, new InetSocketAddress("localhost", 10000), new Configuration());

        String result = loginService.login("liuchang", "123123");

        System.out.println(result);
    }
}
